<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        'use strict'
        let c = {
            say: () => console.dir(this),
            work: function () {
                console.dir(this);
                let d = "ddd";
                let e = () => console.log(this);
                e();
            }
        }
        class F {
            constructor(){
                this.work = this.work.bind(this);
                // this.say=()=>console.dir(this);
                
            }
            
            say = () => console.dir('this')
            
            name="zhangsan"

            work(){
                console.log(this);
            }
        }

        function G(){
            this.say = () => console.dir('this')
            this.name = "zhangsan";
        }

        G.prototype.work=function(){
            console.log(this);
        }

        // let a = c.work;
        // a();
        // let b = { 'name': 'b' };
        // b.work = c.work;
        // b.work();

        let f = new F();
        let b = f.work;
        b();
        let a = 1;
        a.b=10
        log
    </script>
</body>

</html>